home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / 0286.ZIP / TRAVEL.RUL < prev    next >
Text File  |  1986-10-05  |  1KB  |  77 lines

  1. (* This is a file called TRAVEL.RUL, it can be created in WORDSTAR or any *)
  2. (* text editor like EDLIN.                                                *)
  3.  
  4. (* The rules file for the travel expert system.                          *)
  5. (* The main attribute to be searched for is travel, although the program *)
  6. (* will calculate a value for any of the attributes given.               *)
  7.  
  8. rule
  9.   travel is by foot
  10.   if ok to walk is true
  11.   and weather is nice and sunny
  12.  
  13. rule
  14.   travel is by car
  15.   if distance < 500
  16.   and use of car is true
  17.  
  18. rule
  19.   travel is by train
  20.   if distance < 500
  21.   and on railway line is true
  22.  
  23. rule
  24.   travel is by plane
  25.   if distance >= 500
  26.   and flying opinion is not you hate it
  27.   and near airport is true
  28.  
  29. rule
  30.   use of car is true
  31.   if able to drive is true
  32.   and access to car is true
  33.   and good parking is true
  34.  
  35. rule
  36.   use of car is false
  37.   if able to drive is false
  38.  
  39. rule
  40.   use of car is false
  41.   if access to car is false
  42.  
  43. rule
  44.   use of car is false
  45.   if good parking is false
  46.  
  47. rule
  48.   weather is nice and sunny
  49.   if nice day is true
  50.   and cold day is false
  51.  
  52. rule
  53.   weather is cold or wet
  54.   if cold day is true
  55.  
  56. rule
  57.   weather is cold or wet
  58.   if raining is true
  59.  
  60. rule
  61.   weather is cold or wet
  62.   if snowing is true
  63.  
  64. rule
  65.   ok to walk is true
  66.   if distance < 2
  67.  
  68. rule
  69.   ok to walk is false
  70.   if distance < 2
  71.   and weather is cold or wet
  72.  
  73. rule
  74.   ok to walk is false
  75.   if distance >= 2
  76.  
  77.